home *** CD-ROM | disk | FTP | other *** search
/ Software of the Month Club 2000 October / Software of the Month - Ultimate Collection Shareware 277.iso / pc / PROGRAMS / UTILITY / WINLINUX / DATA1.CAB / programs_-_usrdoc / TERMCAP-.{2I / README.{_2 < prev    next >
Internet Message Format  |  1999-09-17  |  4KB

  1. From: Miquel van Smoorenburg <miquels@cistron.nl>
  2.  
  3. Even better. I have a patch for termcap.c that will solve the problem:
  4.  
  5. - it deletes capabilities that start with '.' as used in the new
  6.   termcap files - those are commented out capabilities.
  7. - it tries to translate escaped characters before putting them
  8.   in the buffer as opposed to doing at in tgetstr.
  9.  
  10. Now the Linux and other entries fit in 1024 bytes.
  11.  
  12. H.J. Lu
  13. hjl@gnu.ai.mit.edu
  14. 04/15/96
  15. -----
  16. I copied the termcap info stuff as well as termcap.src from
  17. the GNU termcap 1.3. But I didn't copy the source code. The
  18. Linux termcap 2.0.7 is different from the GNU termcap 1.3. But
  19. they share the same API/ABI. The linux entry in the new termcap
  20. is larger than 1024 chars. But your application may only have
  21. a 1024 byte buffer. You may see
  22.  
  23. tgetent: warning: termcap entry too long
  24.  
  25. message when you run it in the Linux console. You can pass NULL to
  26. tgetent () to let termcap malloc the buffer. elm and zsh are two
  27. applications I know which use termcap and have this problem.
  28.  
  29.  
  30. H.J. Lu
  31. hjl@gnu.ai.mit.edu
  32. 04/05/96
  33. ----
  34. I decided to reissue libtermcap and make it ELF only since ncurses
  35. is an overkill for termcap. You need to install binutils 2.6.0.2 or
  36. above, gcc 2.7.2 or above and libc 5.2.18 or above to compile/install
  37. this termcap library. There are no code changes from libtermcap 2.0.3
  38. which was included in libc 5.0.9 last time.
  39.  
  40. H.J. Lu
  41. hjl@gnu.ai.mit.edu
  42. 12/25/95
  43. -----
  44. This is the new termcap library for Linux. It consists of
  45. two source files:
  46.  
  47. 1. termcap.c   -  written form scratch by me
  48. 2. tparam.c    -  this is the the GNU emacs or glibc tparam.c
  49.  
  50. The new tgetent in termcap.c checks for overflow of the
  51. termcap buffer, which most applications assume is 1024 characters.
  52. Furthermore it eliminates duplicate entries and checks for
  53. loops caused by the include capability "tc=".
  54.  
  55. The termcap.c code falls under the LGPL.
  56. (Library version of GNU Public License).
  57.  
  58. If you create termcap files with many levels of indirection
  59. (with the tc= variable) this code will work allright, but the
  60. internal buffer of software that uses it's own tgetent() function
  61. will probably overflow, if it even supports "tc". It is therefore
  62. always a good idea to include a "eval `tset -s $TERM`" in your
  63. /etc/profile (assuming that tset uses the new termcap library!),
  64. because that initializes the TERMCAP variable. The whole, small
  65. termcap entry will then be stored in TERMCAP. Most if not all
  66. tgetent() implementations check for a TERMCAP environment variable
  67. first before searching /etc/termcap.
  68.  
  69. 20-Oct-1994 Miquel van Smoorenburg, miquels@ow.org
  70.  
  71.  
  72. The original README and NEWS files are included below.
  73.  
  74. ========== Original README ===========
  75.  
  76. This is the GNU termcap library -- a library of C functions that
  77. enable programs to send control strings to terminals in a way
  78. independent of the terminal type.  Most of this package is also
  79. distributed with GNU Emacs, but it is available in this separate
  80. distribution to make it easier to install as -ltermcap.
  81.  
  82. The GNU termcap library does not place an arbitrary limit on the size
  83. of termcap entries, unlike most other termcap libraries.
  84.  
  85. See the file INSTALL for compilation and installation instructions.
  86.  
  87. Please report any bugs in this library to bug-gnu-emacs@prep.ai.mit.edu.
  88. You can check which version of the library you have by using the RCS
  89. `ident' command on libtermcap.a.
  90.  
  91. =========== Original NEWS ===========
  92.  
  93. Major changes in release 1.2:
  94.  
  95. For `%.', only set the high bit on NUL.
  96. Fix a file descriptor and memory leak.
  97. Add const in termcap.h prototypes.
  98. Configuration improvements.
  99.  
  100. Major changes in release 1.1:
  101.  
  102. Fix portability problems.
  103. Improve configuration and installation.
  104. Fix compiler warnings.
  105.